package com.graduation.lastproject.service.business.businessBasicActive;

import com.graduation.lastproject.entity.Business;
import com.graduation.lastproject.entity.HotelInfo;

import java.util.List;
import java.util.Map;

public interface BusinessService {
    int insertInfo(Map<String, String[]> map);

    //上传酒店数据信息
    int insertInfo1(Map<String, Object> map);

    //上传酒店图片信息
    int insertPicInfo(Map<String, Object> info);

    //上传酒店图片信息
    int updatePicInfo(Map<String, Object> info);

    //查询电话是否注册过
    boolean getBusinessPhone(String bphone);

    //商家信息注册
    int insertBusinessInfo(Map<String, Object> map);

    //商家信息修改
    int uploadBusinessInfo(Map<String, Object> map);

    //根据登录名查库登录人所有信息
    Business getByLogsinName(String loginname);

    //根据登录人电话查询相关联信息
    HotelInfo getHotelInfoByBphone(String bphone);

    //修改商家信息级联修改hotelInfo bphone电话
    void updateHotelInfoBphone(Map<String,Object> map);
}
